/*
 * Panel.java
 * $Id: $
 *
 * Revision History
 *
 * Date             |  Programmer   |  Notes
 * ----------------------------------------------------------
 * Jul 15, 2009        |      Zhengnan Zhou         |  initial
 * 
 * 
 * **********************************************************
 */

package tofc.elements;

import tofc.BaseOFC;
import java.util.ArrayList;
import java.util.List;

import tofc.chart.Line;
import tofc.chart.Pie;
import java.math.BigDecimal;
import java.util.Iterator;
import tofc.util.JsonTool;

/**
 * Class description goes here.
 * 
 * @author		Zhengnan Zhou
 * @version 	$Revision$, Jul 15, 2009
 */
public abstract class BasePanel extends BaseOFC{
    
    private Title title;
    private ToolTip tooltip;
    protected List elements;      
    
    /**
     * 
     */
    public BasePanel() {
        this.elements = new ArrayList();        
    }  
    

    /**
     * @return the title
     */
    public Title getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(Title title) {
        this.title = title;
    }

    public ToolTip getTooltip() {
        return tooltip;
    }

    public void setTooltip(ToolTip tooltip) {
        this.tooltip = tooltip;
    }

    public String toJson(){
        JsonTool tool = new JsonTool();
        return tool.buildJson(this);
    }
  
    
}
